const express = require('express')
////导入body-parser 
const bodyparser = require('body-parser')

const app = express()

app.listen(80,()=>{
 console.log('http://127.0.0.1');
})

//导入路由模块
const Username = require('./front/index.js')

//中间件
app.use(bodyparser.urlencoded({extended:false}))

//静态托管
app.use(express.static('./leave'))

//用户操作

app.use('/front',Username) 

